package com.ruoyi.system.service.impl;

import com.ruoyi.common.core.domain.entity.ExamineRecord;
import com.ruoyi.system.mapper.ExamineRecordMapper;
import com.ruoyi.system.service.ExamineRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: ruohao
 * @Date: 2023/9/7
 **/
@Service
public class ExamineRecordServiceImpl implements ExamineRecordService {
    @Resource
    private ExamineRecordMapper examineRecordMapper;

    @Override
    public List<ExamineRecord> selectList(ExamineRecord examineRecord) {
        return examineRecordMapper.selectList(examineRecord);
    }

    @Override
    public ExamineRecord selectById(Long id) {
        return examineRecordMapper.selectById(id);
    }

    @Override
    public Boolean create(ExamineRecord examineRecord) {
        return examineRecordMapper.insert(examineRecord) == 1;
    }

    @Override
    public Boolean update(ExamineRecord examineRecord) {
        return examineRecordMapper.update(examineRecord) == 1;
    }

    @Override
    public Boolean deleteById(Long id) {
        return examineRecordMapper.deleteById(id) == 1;
    }

    @Override
    public List<ExamineRecord> companyList(ExamineRecord examineRecord) {
        List<ExamineRecord> list = examineRecordMapper.companyList(examineRecord);
        return list;
    }
}
